import { createApp } from 'vue'
import './style.css'
import './assets/css/css'
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css'
import router from './router/index'
import api from './api/api'
import App from './App.vue'
import direactives from './direactive';
import echarts from 'echarts'
// const pinia = createPinia()

import { useChangeTime } from './hooks/changeTime'

import pinia from './store/index'

const app = createApp(App)

direactives(app)

app.config.globalProperties.$echarts = echarts
app.config.globalProperties.$http = api
app.config.globalProperties.$useChangeTime = useChangeTime

// 状态管理器
app.use(pinia)
// 路由
app.use(router)
// 组件库
app.use(ElementPlus)
app.mount('#app')
